import {createStackNavigator} from '@react-navigation/stack';

const Stack = createStackNavigator();

// 路由
import {MainRoutes, pagesRouter} from '../../router';
function MyStack(navigation, route) {
  return (
    <Stack.Navigator>
      {pagesRouter.map((item, index) => {
        return (
          <Stack.Screen
            key={index}
            name={item.name}
            component={item.component}
          />
        );
      })}

      {/* <Stack.Screen name="Home" component={Home} />
      <Stack.Screen name="Notifications" component={Notifications} />
      <Stack.Screen name="Profile" component={Profile} />
      <Stack.Screen name="Settings" component={Settings} /> */}
    </Stack.Navigator>
  );
}

export default MyStack;
